﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YWTSSys.DAL;
using YWTSSys.Model;
using YWTSSys.Library;
using System.Data;

namespace YWTSSys.BLL
{
    public  class ConsumeRecordController
    { 
        /// <summary>
        /// 消费添加
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public static int Add(ConsumeRecordInfo obj)
        {
            return ConsumeRecordDAL.Add(obj);
        }
        /// <summary>
        /// 根据客户ID获取其所有的消费记录.只显示最近的20条记录，超出部份不显示
        /// </summary>
        /// <param name="客户ID"></param>
        /// <returns></returns>
        public static DataTable GetByCustomerId(int 客户ID)
        {
            return ConsumeRecordDAL.GetByCustomerId(客户ID);
        }
    }
}
